﻿<%--<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BatchContrast.aspx.cs" Inherits="BatchContrast" %>--%>



<%@ Page Title="【开奖对比-多注批量对比】" Language="C#" MasterPageFile="~/APP_Master/MasterPageIndex.master"
    AutoEventWireup="true" CodeFile="BigLotteryBatc.aspx.cs" Inherits="BigLotteryBatc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="App_Themes/js/jquery.fxTab.js"></script>
    <link href="css/webstyle.css" rel="stylesheet" type="text/css" />
    <style>
        .top_bg {
            background: #c41921;
        }

            .top_bg a {
                color: #fff;
            }

        .top_list {
            background: #c41921;
            color: #fff;
            text-align: center;
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            float: left;
            padding: 0 30px;
        }

        .top_list1 {
            color: #fff;
            text-align: center;
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            background: url(images/kjdb_icon2.jpg) no-repeat center bottom #fd2e37;
            float: left;
            padding: 0 30px;
        }

        .wh {
            border: solid 1px #e5e5e5;
        }

        .wh1 {
            border: solid 1px #c7b0b7;
            height: 26px;
            line-height: 26px;
        }

        .wh2 {
            display: block;
            float: left;
            text-align: center;
            padding: 0 12px;
            color: #3a3a3a;
            font-size: 14px;
        }

        .wh3 {
            display: block;
            float: left;
            text-align: center;
            padding: 0 12px;
            color: #fff;
            font-size: 14px;
            background: #c41921;
        }

        .fxui-tab {
        }

        .fxui-tab-hand {
            border-top: solid 1px #e1e1e1;
        }

        .fxui-tab-tit {
            width: 109px;
            display: block;
            float: left;
            height: 34px;
            line-height: 34px;
            cursor: pointer;
            background: #f2f2f2;
            text-align: center;
            border-left: solid 1px #e1e1e1;
            border-bottom: solid 1px #e1e1e1;
        }

        .fxui-tab-hand .curr {
            background: #fff;
            color: #c41921;
        }

        .fxui-tab-nav {
        }
    </style>
    <script type="text/javascript">
        var RedArray = new Array();
        var BlueArray = new Array();
        var ListArray = new Array();
        var cookies = 0;

        window.num;
        var QS6 = "";
        var QS5 = "";
        var QS4 = "";
        var QS3 = "";
        var QS2 = "";
        var QS1 = "";
        //保存扩展查询6个等级是否点过
        var ArrayNG = new Array();
        var allNO = "";
        var show6 = 1;
        var show5 = 1;
        var show4 = 1;
        var show3 = 1;
        var show2 = 1;
        var show1 = 1;

        //每页数量
        var pagecount = 10;
        

        function Confirm() {
            var count = 0;
            //alert(111)
            var Number = $("#textarea").val().split("|");
            if (Number == "") {
                alert("请检查号码是否输入正确！")
                return;
            }

            for (var i = 0; i < Number.length; i++) {
                if (Number[i] == "") { break;}
                var AllBall = Number[i].split("+");
                
                if (AllBall[1] == undefined || AllBall[1]=="") {
                    alert("请检查号码是否输入正确！")
                    return;
                }
                var RedBall = AllBall[0].split(" ");
                //alert(RedBall);
                var BlueBall = AllBall[1].split(" ");
                
                var value = 0;
                for (var j = 0; j < RedBall.length; j++) {
                    if (RedBall[j] != "" && parseInt(RedBall[j]) > 0) {
                        if (parseInt(RedBall[j]) < 36) {
                            if (parseInt(RedBall[j]) < 10) {
                                value = "0" + parseInt(RedBall[j]);
                            } else {
                                value = parseInt(RedBall[j]);
                            }
                            if ($.inArray(value, RedArray) == -1) {
                                RedArray.push(value);
                            }
                            
                        }                          
                    }
                }
                //alert(RedArray.length+"红球数组");
                //if (RedArray.length < 6) {
                //    alert("第" + i + 1 + "组红球数量小于6组，不能组合哦~");
                //}
                for (var k = 0; k < BlueBall.length; k++) {
                    if (BlueBall[k] != "" && parseInt(BlueBall[k]) > 0 && parseInt(BlueBall[k]) < 13) {
                        if (parseInt(BlueBall[k]) < 10) {
                            value = "0" + parseInt(BlueBall[k]);
                        } else {
                            value = parseInt(BlueBall[k]);
                        }
                        if ($.inArray(value, BlueArray) == -1) {
                            BlueArray.push(value);
                        }
                        
                    }
                }
                //if (BlueArray.length < 1) {
                //    alert("第" + i + 1 + "组没有蓝球，不能组合哦~");
                //}
                //alert(RedArray.length); alert(BlueArray.length)
                if (RedArray.length > 4 && BlueArray.length > 1) {
                    //var cot = parseInt(fibonacci(RedArray.length) / fibonacci(5) / fibonacci(RedArray.length - 5)) * BlueArray.length;
                    var cot = parseInt((fibonacci(RedArray.length) / fibonacci(5) / fibonacci(RedArray.length - 5)) * (fibonacci(BlueArray.length) / fibonacci(2) / fibonacci(BlueArray.length - 2)));
                    count += cot;
                    ListArray.push(RedArray + "+" + BlueArray + "&" + cot);
                    RedArray = new Array();
                    BlueArray = new Array();
                    
                }
            }alert(count)
            if (count < 1) { alert("请检查号码是否输入正确！"); return; }
            if (confirm("系统已检测出" + count + "注" + count * 2 + "元，是否确认对比？")) {
               // $(".db_k").html("");
                for (var i = 0; i < ListArray.length; i++) {
                    
                    var count = ListArray[i].split("&");
                    var ball = count[0].split("+");
                    

                    $(".db_k").append('<li> <span class="fl" style="width:570px;"><b>投注</b>'
                        + " <b class='db_text1' style='font-weight:normal'>" + ball[0] + " +<span class='db_text2'>" + ball[1] + "</span></b> "
                        + '[' + count[1] + '注,' + count[1] * 2 + '元]</span>'
                        + '<a href="JavaScript:void(0);" onclick="javascript:Delete(this);">删除</a>'
                        + '<a href="double_ball.aspx" onclick="javascript:Update(this);">修改</a>'
                        + '<a href="JavaScript:void(0);" onclick="javascript:ToContrast(this,1);">对比</a><div style="clear:both"></div></li>');
                }
                $("#textarea").val("");
                cookies += 1;

            } else {
                //alert("取消")
            }
            ListArray = new Array();
            
        }
        function fibonacci(n) {
            var rtn = 1;
            if (n > 1) {
                var i = 1;
                while (i <= n) {
                    rtn = rtn * i;
                    i++;
                }
            }
            return rtn;
        }
        function Clear(type) {
            if (type == 1) {
                $("#textarea").val('');
            } else if (type == 0) {
               $(".db_k").html("");
               cookies = 0;
            }
            
        }
        
        function Delete(obj) {
            $(obj).parent().remove();
            cookies -= 1;
        }
        function Update(obj) {
            var blue = $(obj).parent().children().children(".db_text1").text().split("+");
            var blueball = blue[1].replace(/,/g,"*");
            
            sessionStorage["par2"] = blue[0] + "+" + blueball;
        }


        function ChangeQS(count) {
            //alert($('input:radio:checked').val());
            var pageCount = document.getElementById("hidQS");
            if (count == 30) {
                $(".db_text3").html("30期对比结果");
            } else if (count == 50) {
                $(".db_text3").html("50期对比结果");

            } else if (count == 100) {
                $(".db_text3").html("100期对比结果");

            } else if (count == 300) {
                $(".db_text3").html("300期对比结果");

            } else if (count == 1) {
               // alert(count);

                $.ajax({
                    url: "/Ajax/GetAllCountQS.ashx",
                    type: "POST",
                    data: { type: 2 },
                    success: function (response) {
                        $(".db_text3").html(response + "期对比结果");
                    }
                });

            }

        }

        function Cancel(num) {

            $("#DJ" + num).show();
            $("#KZselect" + num).hide();
            $("#cancel" + num).hide();

        }
        function ExtensionQuery(obj, num) {

            
            $("#DJ" + num).hide();
            $("#KZselect" + num).show();
            $("#cancel" + num).show();
            var KZQS = "";
            if (num == 6) {
                //alert($.inArray(num, ArrayNG));
                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS6;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
                //alert($("#KZselect" + num).html());
            } else if (num == 5) {
                
                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS5;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } else if (num == 4) {
                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS4;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } else if (num == 3) {
                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS3;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } else if (num == 2) {
                if ($.inArray(num, ArrayNG) > -1) {
                    
                    return;
                }
                KZQS = QS2;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } else if (num == 1) {
                
                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS1;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } 
            

            $.ajax({
                url: "/Ajax/BigLotteryContrast.ashx",
                type: "post",
                //dataType: "text",
                data: {
                    KZselect: num + '+' + KZQS
                },
                success: function (data, textStatus) {
                    var str6 = "";
                    var money = "";
                    $("#DJ" + num).hide();
                    $("#KZselect" + num).show();
                    $("#cancel" + num).show();
                    

                    for (var i = 0; i < eval(data).length; i++) {

                        if (num == 6) {
                            money = eval(data)[i].sixMoney;
                        } else if (num == 5) {
                            money = eval(data)[i].fiveMoney;
                        } else if (num == 4) {
                            money = eval(data)[i].fourMoney;
                        } else if (num == 3) {
                            money = eval(data)[i].threeMoney;
                        } else if (num == 2) {
                            money = eval(data)[i].twoMoney;
                        } else if (num == 1) {
                            money = eval(data)[i].oneMoney;
                        }

                        var redBall = eval(data)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");

                        if (i == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + money + "元)</span></li>";
                            $("#KZselect" + num).append(str6);
                        } else if (i % 3 == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + money + "元)</span></li>";
                            $("#KZselect" + num).append(str6);
                        }
                        else {
                            str6 = " <li><span >第" + eval(data)[i].LotteryQS + "期"
                                        + "<span > " + eval(data)[i].LotteryNo + "</span>  "


                            $("#KZselect" + num).append(str6);
                        }
                        if ((i + 1) % 3 == 0) {
                            $("#KZselect" + num).append("<li></li>");

                        }

                    }
                }
            });
        }

        function ToContrast(obj, num) {
            ArrayNG = new Array();
             QS6 = "";
             QS5 = "";
             QS4 = "";
             QS3 = "";
             QS2 = "";
             QS1 = "";

            var qs= $(".db_text3").html();
            var NO = "[\"";
            //var aa = $(".db_text1").length;
            //alert(cookies);

            //alert($("#btn").value != '');
            if (cookies == 0) {
                alert("请至少选择一注号码进行比对！");
                return;
            } else if (cookies > 0) {
                var NO1 = $(".db_k").text().split("比");
                for (var i = 0; i < NO1.length; i++) {
                    var NO2 = NO1[i].split("[");
                    if (NO2 == "") {
                        break;
                    }
                    var NO3 = NO2[0].replace("投注", "");
                    NO3 = NO3.replace(/\s/g, "");
                    NO3 = NO3.replace(/,/g, "*");
                    NO += NO3 + ",";
                }
                NO += "\"]";
            }
            if (num == 1) {
                if ($(obj).parent().children().children(".db_text1").text() == "") {
                    alert("请至少选择一注号码进行比对！");
                } else {
                    NO = $(obj).parent().children().children(".db_text1").text();

                    NO = NO.replace(/\s/g, "");
                    NO = "[\"" + NO.replace(/,/g, "*") + "\"]";
                }
            }
            $(".kjdb_r").hide();
            $(".kjdb_r1").show();
            $.ajax({
                url: "/Ajax/BigLotteryContrast.ashx",
                type: "POST",
                data: {
                    QS: qs,
                    changeBall: NO
                },
                success: function (Response) {
                    //alert(Response);
                    //alert(eval(Response).length);
                    $("#DJ6").html("");
                    $("#DJ5").html("");
                    $("#DJ4").html("");
                    $("#DJ3").html("");
                    $("#DJ2").html("");
                    $("#DJ1").html("");
                    allNO = Response;
                    var ID = "";
                    var str6 = "";
                    var count1 = 0;
                    var count2 = 0;
                    var count3 = 0;
                    var count4 = 0;
                    var count5 = 0;
                    var count6 = 0;

                   

                    for (var i = 0; i < eval(Response).length; i++) {
                        var redBall = eval(Response)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");
                        ID = eval(Response)[i].id;
                        // alert(pagecount)   
                        var Money = "";
                        if (ID == 6) {
                            count6++;
                            QS6 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].sixMoney;
                            if (count6 == pagecount + 1) {
                                //alert(11);
                                $("#DJ6").append("<li id=\"showmore6\"  style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                +"<a href=\"#\" onclick=\"ShowMore(this,6)\" style=\"color:white\">加载更多</a></li>");
                                continue;
                            } else if (count6 > pagecount) { continue; }
                        }else if(ID == 5){
                            count5++;
                            QS5 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].fiveMoney;
                            if (count5 == pagecount + 1) {
                                $("#DJ5").append("<li id=\"showmore5\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,5)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count5 > pagecount) { continue; }
                        } else if (ID == 4) {
                            count4++;
                            QS4 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].fourMoney;
                            if (count4 == pagecount + 1) {
                                $("#DJ4").append("<li id=\"showmore4\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,4)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count4 > pagecount) { continue; }
                        } else if (ID == 3) {
                            count3++;
                            QS3 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].threeMoney;
                            if (count3 == pagecount + 1) {
                                $("#DJ3").append("<li id=\"showmore3\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,3)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count3 > pagecount) { continue; }
                        } else if (ID == 2) {
                            count2++;
                            QS2 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].twoMoney;
                            if (count2 == pagecount + 1) {
                                $("#DJ2").append("<li id=\"showmore2\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,2)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count2 > pagecount) { continue; }
                        } else if (ID == 1) {
                            count1++;
                            QS1 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].oneMoney;
                            if (count1 == pagecount + 1) {
                                $("#DJ1").append("<li id=\"showmore1\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,1)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count1 > pagecount) { continue; }
                        }

                        
                      
                            str6 = " <li><span class=\"fl\">第" + eval(Response)[i].LotteryQS + "期"
                                 + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                 + "<span class=\"fr\">(" + Money + "元)</span></li>";
                            $("#DJ"+ID).append(str6);
                        
                        //if (count + ID == 1) {
                        //    $("#sixDJ").append("<li id=\"showmore6\" onclick=\"ShowMore(this,6)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                        //          + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">加载更多</li>");
                        //}
                        
                    }
                    //alert(count6); //alert(count5);
                    $("#Count1").html(count1);
                    $("#Count2").html(count2);
                    $("#Count3").html(count3);
                    $("#Count4").html(count4);
                    $("#Count5").html(count5);
                    $("#Count6").html(count6);


                    if (count6 <= pagecount) {
                        $("#showmore6").hide();
                    }
                    if (count5 <= pagecount) {
                        $("#showmore5").hide();
                    }
                    if (count4 <= pagecount) {
                        $("#showmore4").hide();
                    }
                    if (count3 <= pagecount) {
                        $("#showmore3").hide();
                    }
                    if (count2 <= pagecount) {
                        $("#showmore2").hide();
                    }
                    if (count1 <= pagecount) {
                        $("#showmore1").hide();
                    }

                    if (count1 == 0) {
                        $("#Count1").html("0");
                        $("#KZ1").hide();
                        $("#DJ1").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ1").show();
                    }
                    if (count2 == 0) {
                        $("#Count2").html("0");
                        $("#KZ2").hide();
                        $("#DJ2").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ2").show();
                    }
                    if (count3 == 0) {
                        $("#Count3").html("0");
                        $("#KZ3").hide();
                        $("#DJ3").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ3").show();
                    }
                    if (count4 == 0) {
                        $("#Count4").html("0");
                        $("#KZ4").hide();
                        $("#DJ4").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ4").show();
                    }
                    if (count5 == 0) {
                        $("#Count5").html("0");
                        $("#KZ5").hide();
                        $("#DJ5").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ5").show();
                    }
                    if (count6 == 0) {
                        $("#Count6").html("0");
                        $("#KZ6").hide();
                        $("#DJ6").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ6").show();
                    }
                    
                }
            });
        }

        function ShowMore(obj, num) {
            
            var showCount;
            var html = "";
            var count = 0;

            var sixcount = Math.ceil(($("#Count6").html()) / pagecount);
            var fivecount = Math.ceil(($("#Count5").html()) / pagecount);
            var fourcount = Math.ceil(($("#Count4").html()) / pagecount);
            var threecount = Math.ceil(($("#Count3").html()) / pagecount);
            var twocount = Math.ceil(($("#Count2").html()) / pagecount);
            var onecount = Math.ceil(($("#Count1").html()) / pagecount);

            if (num == 6) {
                show6 += 1;
                showCount = pagecount * show6 + 1;
                $("#DJ6").html("");
                if (sixcount == show6) {
                    $("#showmore6").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 6) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].sixMoney + "元)</span></li>";

                            $("#DJ6").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ6").append("<span id=\"showmore6\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,6)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }


            } else if (num == 5) {
                show5 += 1;
                showCount = pagecount * show5 + 1;
                $("#DJ5").html("");
                if (fivecount == show5) {
                    $("#showmore5").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 5) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].fiveMoney + "元)</span></li>";

                            $("#DJ5").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ5").append("<span id=\"showmore5\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,5)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            } else if (num == 4) {
                show4 += 1;
                showCount = pagecount * show4 + 1;
                $("#DJ4").html("");
                if (fourcount == show4) {
                    $("#showmore4").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 4) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].fourMoney + "元)</span></li>";

                            $("#DJ4").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ4").append("<span id=\"showmore4\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,4)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            } else if (num == 3) {
                show3 += 1;
                showCount = pagecount * show3 + 1;
                $("#DJ3").html("");
                if (threecount == show3) {
                    $("#showmore3").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 3) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].threeMoney + "元)</span></li>";

                            $("#DJ3").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ3").append("<span id=\"showmore3\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,3)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            } else if (num == 2) {
                show2 += 1;
                showCount = pagecount * show2 + 1;
                $("#DJ2").html("");
                if (twocount == show2) {
                    $("#showmore2").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 2) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].twoMoney + "元)</span></li>";

                            $("#DJ2").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ2").append("<span id=\"showmore2\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,2)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            } else if (num == 1) {
                show1 += 1;
                showCount = pagecount * show1 + 1;
                $("#DJ1").html("");
                if (onecount == show1) {
                    $("#showmore1").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 1) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].oneMoney + "元)</span></li>";

                            $("#DJ1").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ1").append("<span id=\"showmore1\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,1)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            }

        }
        
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="nr" style="padding: 30px 0">
        <div style="padding: 0 0   0;">
            <span class="fl">
                <img src="images/daletou.jpg"></span> <span class="fl kjdb_text1">大乐透工具大全</span> <span class="fr kjdb_text2">其他历史开奖对比器： <a href="BatchContrast.aspx">双色球</a> <%--| <a href="SevenBatch.aspx">七乐彩</a>--%></span>
            <div class="cl"></div>
        </div>
        <div>
            <div class="top_bg">
                <a href="BigLotto.aspx" class="top_list1">开奖对比</a> <a href="jjjs_dlt_zigou.aspx" class="top_list">奖金计算</a><a href="zhanyemeitiyuce_dlt.aspx" class="top_list">专业媒体预测</a>
                <div class="cl"></div>
            </div>
            <div class="wh">
                <div class="kjdb_title1">
                    <div class="wh1 fl" style="padding: 0;">
                        <a href="BigLotto.aspx" class="wh2">普通对比</a><a href="BigLotteryBatc.aspx" class="wh3" style="color: #fff;">多注批量对比</a>
                        <div class="cl"></div>
                    </div>
                    <div class="cl"></div>
                </div>
                <div class="kjdb_nr">
                    <div class="kjdb_l">
                        <div class="pldb">
                            <div class="fl fb">选号须知：</div>
                            <div class="fl">
                                至少输入5个红球和1个蓝球组合成一注彩票<br />
                                1、红球和蓝球之间用 + 分隔，两注之间用 | 分隔<br />
                                2、单式示例：<span class="db_text1">01 02 03 04 05</span>+<span class="db_text2">06 07</span><br />
                                3、复式示例：<span class="db_text1">01 02 03 04 05 06 07 08 09</span>+<span class="db_text2">01 02 03</span><br />
                                4、中英文、符号等非法字符以及无效号码，系统将自动滤除<br />
                                请严格按照举例格式输入或粘贴您的号码进行查询
                            </div>
                            <div class="cl"></div>
                        </div>
                        <textarea name="textarea" id="textarea" class="kjdb_textarea" cols="10" onkeyup="value=value.replace(/[^0-9+| ]/g,'')"></textarea>
                        <input type="button" class="kjdb_btn" value="确认选号" onclick="Confirm()" />
                        <div id="db_k" class="pldb_text"><a href="#" onclick="Clear(1)">清空选号</a></div>
                        <div class="db_k">
                            <input type="button" id="bnt" value="123" style="display: none;" />
                        </div>
                        <div id="" class="tr kjdb_text6"><a href="#" onclick="Clear(0)">清空列表</a></div>
                        <div class="kjdb_input1">
                            <span class="fl">对比最近： </span>
                            <input type="radio" name="radio" id="radio1" value="radio" onclick="ChangeQS(1)" />
                            <label for="radio">所有期数 </label>
                            <input type="radio" name="radio" id="radio2" value="radio" checked="checked" onclick="ChangeQS(300)" />
                            <label for="radio">300期</label>
                            <input type="radio" name="radio" id="radio3" value="radio" onclick="ChangeQS(100)" />
                            <label for="radio">100期</label>
                            <input type="radio" name="radio" id="radio4" value="radio" onclick="ChangeQS(50)" />
                            <label for="radio">50期</label>
                            <input type="radio" name="radio" id="radio5" value="radio" onclick="ChangeQS(30)" />
                            <label for="radio">30期</label>
                            <div class="cl"></div>
                        </div>
                        <input type="button" class="kjdb_btn1" value="开始对比" onclick="ToContrast(this,0)" />
                    </div>
                    <div class="kjdb_r">
                        请先在左侧选择号码进行对比后，在此查看结果！<br />
                        <br />
                        如果您验证的号码在历史上经常命中大奖或历史上中奖概率极低，建议您使用 “追号功能”。
                    </div>
                    <div class="kjdb_r1" style="display: none;">
                        <div class="db_text3 tc">300期对比结果</div>
                        <ul class="db_r_list">
                            <li>一等奖：<span id="Count1" class="db_text4">0</span> 次 </li>
                            <li>二等奖：<span id="Count2" class="db_text4">0</span>次</li>
                            <li>三等奖：<span id="Count3" class="db_text4">0</span> 次 </li>
                            <li>四等奖：<span id="Count4" class="db_text4">0</span> 次</li>
                            <li>五等奖：<span id="Count5" class="db_text4">0</span> 次 </li>
                            <li>六等奖：<span id="Count6" class="db_text4">0</span> 次</li>
                            <div class="cl"></div>
                        </ul>
                        <div class="fxui-tab">
                            <div class="fxui-tab-hand">
                                <span class="fxui-tab-tit">一等</span> <span class="fxui-tab-tit">二等</span> <span class="fxui-tab-tit">三等</span> <span class="fxui-tab-tit">四等</span><span class="fxui-tab-tit">五等</span><span class="fxui-tab-tit">六等</span>
                                <div class="cl"></div>
                            </div>
                            <div class="fxui-tab-nav">
                                <div class="db_text5">
                                    <span class="">命中一等奖（ <span class="db_text1">6</span> 红 <span class="db_text2">1</span> 蓝）</span>
                                    <div>
                                        <span id="KZ1">
                                            <input type="button" class="db_text6 fr" onclick="ExtensionQuery(this,1)" style="border: none;" value="扩展查询" /></span>
                                        <input type="button" id="cancel1" class="db_text6 fr" style="display: none; margin: 0 20px 0 0; border: none;" onclick="Cancel(1)" value="取消" />
                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <ul id="DJ1" class="db_qs" style="border: solid 1px #e5e5e5; height: 620px; overflow-y: scroll;">
                                </ul>
                                <ul id="KZselect1" class="db_qs" style="border: solid 1px #e5e5e5; height: 650px; overflow-y: scroll; display: none;">
                                </ul>
                            </div>
                            <div class="fxui-tab-nav">
                                <div class="db_text5">
                                    <span class="">命中二等奖（ <span class="db_text1">6</span> 红 <span class="db_text2">0</span> 蓝）</span>
                                    <div>
                                        <span id="KZ2">
                                            <input type="button" class="db_text6 fr" onclick="ExtensionQuery(this,2)" style="border: none;" value="扩展查询" /></span>
                                        <input type="button" id="cancel2" class="db_text6 fr" style="display: none; margin: 0 20px 0 0; border: none;" onclick="Cancel(2)" value="取消" />
                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <ul id="DJ2" class="db_qs" style="border: solid 1px #e5e5e5; height: 620px; overflow-y: scroll;">
                                </ul>
                                <ul id="KZselect2" class="db_qs" style="border: solid 1px #e5e5e5; height: 650px; overflow-y: scroll; display: none;">
                                </ul>
                            </div>
                            <div class="fxui-tab-nav">
                                <div class="db_text5">
                                    <span class="">命中三等奖（ <span class="db_text1">5</span> 红 <span class="db_text2">1</span> 蓝）</span>
                                    <div>
                                        <span id="KZ3">
                                            <input type="button" class="db_text6 fr" onclick="ExtensionQuery(this,3)" style="border: none;" value="扩展查询" /></span>
                                        <input type="button" id="cancel3" class="db_text6 fr" style="display: none; margin: 0 20px 0 0; border: none;" onclick="Cancel(3)" value="取消" />

                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <ul id="DJ3" class="db_qs" style="border: solid 1px #e5e5e5; height: 620px; overflow-y: scroll;">
                                </ul>
                                <ul id="KZselect3" class="db_qs" style="border: solid 1px #e5e5e5; height: 650px; overflow-y: scroll; display: none;">
                                </ul>
                            </div>
                            <div class="fxui-tab-nav">
                                <div class="db_text5">
                                    <span class="">命中四等奖（ <span class="db_text1">4</span> 红 <span class="db_text2">1</span> 蓝或<span class="db_text1">5</span>红）</span>
                                    <div>
                                        <span id="KZ4">
                                            <input type="button" class="db_text6 fr" onclick="ExtensionQuery(this,4)" style="border: none;" value="扩展查询" /></span>
                                        <input type="button" id="cancel4" class="db_text6 fr" style="display: none; margin: 0 20px 0 0; border: none;" onclick="Cancel(4)" value="取消" />

                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <ul id="DJ4" class="db_qs" style="border: solid 1px #e5e5e5; height: 620px; overflow-y: scroll;">
                                </ul>
                                <ul id="KZselect4" class="db_qs" style="border: solid 1px #e5e5e5; height: 650px; overflow-y: scroll; display: none;">
                                </ul>
                            </div>
                            <div class="fxui-tab-nav">
                                <div class="db_text5">
                                    <span class="">命中五等奖（ <span class="db_text1">3</span> 红 <span class="db_text2">1</span> 蓝或<span class="db_text1">4</span>红）</span>
                                    <div>
                                        <span id="KZ5">
                                            <input type="button" onclick="ExtensionQuery(this,5)" class="db_text6 fr" style="border: none;" value="扩展查询" /></span>
                                        <input type="button" id="cancel5" class="db_text6 fr" style="display: none; margin: 0 20px 0 0; border: none;" onclick="Cancel(5)" value="取消" />
                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <ul id="DJ5" class="db_qs" style="border: solid 1px #e5e5e5; height: 620px; overflow-y: scroll;">
                                </ul>
                                <ul id="KZselect5" class="db_qs" style="border: solid 1px #e5e5e5; height: 650px; overflow-y: scroll; display: none;">
                                </ul>
                            </div>
                            <div class="fxui-tab-nav">
                                <div class="db_text5">
                                    <span class="">命中六等奖（ <span class="db_text1">2</span> 红 <span class="db_text2">1</span> 蓝或<span class="db_text1">1</span>红<span class="db_text2">1</span>蓝或<span class="db_text2">1</span>蓝）</span>
                                    <div>
                                        <span id="KZ6">
                                            <input type="button" onclick="ExtensionQuery(this,6)" class="db_text6 fr" style="border: none;" value="扩展查询" /></span>
                                        <input type="button" id="cancel6" class="db_text6 fr" style="display: none; margin: 0 20px 0 0; border: none;" onclick="Cancel(6)" value="取消" />
                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <ul id="DJ6" class="db_qs" style="border: solid 1px #e5e5e5; height: 620px; overflow-y: scroll;">
                                </ul>
                                <ul id="KZselect6" class="db_qs" style="border: solid 1px #e5e5e5; height: 650px; overflow-y: scroll; display: none;">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="cl"></div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $('.fxui-tab').fxuiTab();
    </script>
</asp:Content>
